FROM python:3.8-slim-buster

WORKDIR /code
COPY ./requirements.txt /code/requirements.txt
RUN pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
ADD . /code

RUN python setup.py build
RUN python setup.py install

EXPOSE 8888/tcp 4433/tcp
ENTRYPOINT ["wssh"]